﻿#region imports

using System.Collections.Generic;
using System.Data.Services.Common;
using Microsoft.Data.Services.Toolkit.QueryModel;

#endregion

namespace Codeplex.ODataTFS.Model.Entities
{
	[DataServiceKey("Name")]
	[EntityPropertyMapping("Name", SyndicationItemProperty.Title, SyndicationTextContentKind.Plaintext, true)]
	public class Project
	{
		public string Name { get; set; }

		// Team Project Collection Name
		public string Collection { get; set; }

		[ForeignProperty]
		public IEnumerable<Changeset> Changesets { get; set; }

		[ForeignProperty]
		public IEnumerable<Build> Builds { get; set; }

		[ForeignProperty]
		public IEnumerable<BuildDefinition> BuildDefinitions { get; set; }

		[ForeignProperty]
		public IEnumerable<WorkItem> WorkItems { get; set; }

		[ForeignProperty]
		public IEnumerable<Query> Queries { get; set; }

		[ForeignProperty]
		public IEnumerable<Branch> Branches { get; set; }

		[ForeignProperty]
		public IEnumerable<AreaPath> AreaPaths { get; set; }

		[ForeignProperty]
		public IEnumerable<IterationPath> IterationPaths { get; set; }
	}
}
